<?php $this->pageTitle = Yii::app()->name; 

    $secure_connection = false;
    if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off'
        || $_SERVER['SERVER_PORT'] == 443) {
        $secure_connection = true;
    }    
?>
<!-- banner -->
<!--<div id="shade"></div>
<div id="modal">
    <a id="modal_close" class="modal-close" href="#"></a>
    <div style="padding: 20px; border: 1px solid gray; height: 400px; width: 550px;">
        <h1>
            Due to maintenence reasons we are having to shut down server for next 3 days. We will be bringing in improvements and new packages, old clients will be automatically transferred to new accounts. Thank You.
            
        </h1>
    </div>    
</div>-->
<!--<script type="text/javascript">
    var modal= document.getElementById('modal');
    var shade= document.getElementById('shade');
    if(shade != null){
        modal.style.display=shade.style.display= 'block';
    }
    document.getElementById('modal_close').onclick= function() {
        modal.style.display=shade.style.display= 'none';
    };
    
    // This code is a workaround for IE6's lack of support for the
    // position: fixed style.
    //
    if (!('maxHeight' in document.body.style)) {
        function modalsize() {
            var top= document.documentElement.scrollTop;
            var winsize= document.documentElement.offsetHeight;
            var docsize= document.documentElement.scrollHeight;
            shade.style.height= Math.max(winsize, docsize)+'px';
            modal.style.top= top+Math.floor(winsize/3)+'px';
        };
        modal.style.position=shade.style.position= 'absolute';
        window.onscroll=window.onresize= modalsize;
        modalsize();
    }
</script>-->
<div class="home">
    <div class="home-top" style="<?php if($secure_connection == true){ echo 'padding-left: 14%'; } ?>">
        <?php
        if ($secure_connection == false){
        ?>
        <div class="" style="background: transparent; border: 0; padding: 0; width: 217px;">
        <!--<iframe style="border-radius: 6px" src="http://free.timeanddate.com/clock/i3xd0wd9/n73/fn6/fs16/fc9ff/tc02324d/pc02324d/ftb/pa16/tt0/tw1/th1/ta1/tb4" frameborder="0" width="210" height="74"></iframe>-->
        <iframe style="border-radius: 6px" src="http://free.timeanddate.com/clock/i3zffvki/n1086/fn6/fs16/fc9ff/tc02324d/pc02324d/ftb/bas0/bat1/bacfff/pa16/tt0/tw1/th1/ta1/tb4" frameborder="0" width="210" height="74"></iframe>

        </div>
        <?php
        }
        ?>
<!--        <div class="package-info" >
            <span></span>
            <span class="amount"  style="line-height: 23px; margin-top: 10px">2 Level</span>
            <span>Generation Income</span>
        </div>
        <div class="package-info">
            <span></span>
            <span class="amount"  style="line-height: 23px; margin-top: 10px">2 Level</span>
            <span>Referral Program</span>
        </div>-->
        <div class="package-info">
            <span>TRAIL PACK</span>
            <span class="amount">$ 20</span>
        </div>
        <div class="package-info">
            <span>BASIC RUN</span>
            <span class="amount">$ 100</span>
        </div>
        <div class="package-info">
            <span>PREMIUM</span>
            <span class="amount">$ 200</span>
        </div>
        <div class="package-info">
            <span>SIGNATURE</span>
            <span class="amount">$ 500</span>
        </div>        
        <div class="package-info">
            <span>GOLD</span>
            <span class="amount">$ 1000</span>
        </div>        
    </div>
    <div class="home-bottom">
        <div class="left">
            <div class="img" style="">
                <a href="http://www.carillion.ca/" target="_blank">
                <img class="stock-img" src="<?php echo Yii::app()->request->baseUrl; ?>/images/carilion.jpeg"></img>
                </a>
            </div>
            <div class="news">
                <a style="text-decoration: none" href="<?php echo Yii::app()->request->baseUrl; ?>/index.php/news/index">
                    <div class="news-plugin">
                        <div class="news-plugin-header">
                            <span style="font-weight: bold; color: black">NEWS</span>
                            <ul style="">
                                <?php
                                $sql = "select * from news ORDER BY create_date DESC LIMIT 5";

                                $_newsarray = Yii::app()->db->createCommand($sql)->queryAll();
                                if (!empty($_newsarray)) {
                                    foreach ($_newsarray as $news) {
                                        echo '<li>' . $news['title'] . '</li>';
                                    }
                                }
                                ?>
                            </ul>
                        </div>
                    </div>
                </a>
            </div>
            <div style="padding-top: 56px; text-align: left">
                <a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php/member/signup/?refkey=&type="><img class="register-img" src="<?php echo Yii::app()->request->baseUrl; ?>/images/signup.jpg"></img></a>                
            </div>
            <div style="padding-top: 25px; text-align: left">
                <a href="https://www.egopay.com/" target="_blank"><img class="left-img" style="margin-top: 58px" src="<?php echo Yii::app()->request->baseUrl; ?>/images/ego.png"></img></a>
                <a href="https://perfectmoney.is/" target="_blank"><img class="left-img" src="<?php echo Yii::app()->request->baseUrl; ?>/images/perfectmoney.jpg"></img></a>
            </div>

        </div>
        <div class="middle">
            <div class="middle-content" style="padding-top: 0">
                <p style="margin-top: 0"> 
                    "View Investa" is a sister concern of a Canadian group of companies Carillion which is
                    operating its multi-dimensional conglomerate business over the world. View investa is a
                    great visionary program by the mothercompany to facilitatethe common people to be a part
                    of great journey of investment and making money by won capability.
                </p>
                <div style="margin-top: 5px; margin-bottom: 5px; margin-left: 27px; height: 264px">
                    <iframe id="ytplayer" type="text/html" width="500" height="260"
                            src="https://www.youtube.com/embed/EiifYTAwVT4"
                            frameborder="0" allowfullscreen ></iframe>
<!--                    <video id="video_player" class="video-js vjs-default-skin" controls preload="none" width="500" height="264"
                           data-setup="{}">
                        <source src="<?php Yii::app()->request->baseUrl ?>/videos/render.mp4" type='video/mp4' />
                    </video>-->
                </div>
                <p>
                    "View Investa" is introducing a simple math theory of making money online. To be a part
                    of that any one only needs to view videos. The videos of commercials are subject to watch.
                    We will provide you money against of watching our corporate client's commercial videos. A
                    portion of our commercial videos earned revenue will be distributed to our viewers who are
                    investing their time and internet bandwidth to watch these.
                </p>
            </div>
            <div class="middle-extra">
                <div style="text-align: center">
                    <a href="http://www.alexa.com/siteinfo/viewinvesta.com" target="_blank"><img style="height: 235px; width: 583px" src="<?php echo Yii::app()->request->baseUrl; ?>/images/alexa-graph.jpg"></img></a>                    
                </div>
            </div>
        </div>
        <div class="right">
            <div style="text-align: center" >
                <a href="https://www.facebook.com/view.investa" target="_blank">
                    <img class="facebook-img" style="height: 64px; width: 64px" src="<?php echo Yii::app()->request->baseUrl; ?>/images/fb.png"></img>
                </a>
                <a href="https://twitter.com/viewinvesta" target="_blank">
                    <img class="twitter-img" style="height: 64px; width: 64px" src="<?php echo Yii::app()->request->baseUrl; ?>/images/tw.png"></img>
                </a>
            </div>
            <a href="#">
                <script type="text/javascript" src="http://ja.revolvermaps.com/2/1.js?i=0fjbg8ip2f6&amp;s=220&amp;m=8&amp;v=true&amp;r=false&amp;b=ffffff&amp;n=false&amp;c=ff0000" async="async"></script>                    
            </a>
<!--            <iframe frameborder="0" scrolling="no" height="310" width="205" allowtransparency="true" marginwidth="0" marginheight="0" src="http://fxrates.investing.com/index.php?pairs_ids=1;3;2;4;7;9;5;8;6;10;49;11;&header-text-color=%23FFFFFF&curr-name-color=%230059b0&inner-text-color=%23000000&green-text-color=%232A8215&green-background=%23B7F4C2&red-text-color=%23DC0001&red-background=%23FFE2E2&inner-border-color=%23CBCBCB&border-color=%23cbcbcb&bg1=%23F6F6F6&bg2=%23ffffff&bid=hide&ask=hide&last=hide&open=hide&change=hide&last_update=hide"></iframe><br /><div style="width:273"><span style="float:left"><span style="font-size: 11px;color: #333333;text-decoration: none;">The Forex Quotes are powered by <a href="http://www.investing.com/" rel="nofollow" target="_blank" style="font-size: 11px;color: #06529D; font-weight: bold;" class="underline_link">Investing.com</a>.</span></span></div>-->
            <iframe style="margin-top: 10px;" src="https://informers.mt5.com/gchart/index/if=1&w=215&h=170&bg=ffffff&lc=cacaca&fc=000000&fs=11&cp=51&lt1=Forex&lt2=Market" frameborder="0" width="225" height="390" scrolling="no" title=""></iframe>  
            <div style="text-align: center">
                <a href="http://www.nasdaq.com/" target="_blank"><img class="right-img" style="height: 70px; margin-top: -3px" src="<?php echo Yii::app()->request->baseUrl; ?>/images/nasdaq.jpg"></img></a>
                <a href="https://viewinvesta.com/" target="_blank"><img class="right-img" style="border: 0;" src="<?php echo Yii::app()->request->baseUrl; ?>/images/comodo.png"></img></a>
            </div>
        </div>
    </div>
</div>



